$("#city-picker").cityPicker({
    showDistrict: false,
    title: "请输入地区"
});

$("#subscription").on("click", function () {
    var param = {};
    param.city_code = $("#city_code").val();
    param.brand = $("#brand").val();
    param.model = $("#model").val();
    param.auto = $("#auto").val();
    param.color = $("#color").val();
    param.miles_range = $("#miles_range").val();
    param.price_range = $("#price_range").val();

    console.log(JSON.stringify(param));

    $.ajax({
        type: 'POST',
        url: "subscribe/new",
        data: param,
        success: function (data) {
            console.log(data);
            alert("订阅成功");
        }
    });


});